package mr.ali.video.web.controller;


import mr.ali.video.web.Exception.R;
import mr.ali.video.web.model.Biao;
import mr.ali.video.web.service.IBiaoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2024-09-09
 */
@RestController
@RequestMapping("/web/biao")
public class BiaoController {
   @Resource
   private IBiaoService biaoService;

   @GetMapping("/list")
   public List<Biao> getBiao() {
      List<Biao> biaoList = biaoService.getBiao();
      return biaoList;
   }

}
